package demoSingleton;

// 单例模式
// 饿汉式
public class Singleton {
    private static Singleton instance = new Singleton();

    public Singleton() {

    }

    public static Singleton getInstance() {
        return instance;
    }
}
